<?php

/**
 * Gestionnaire de l'application maitre
 *
 * @category   McCube
 * @package    Bundle
 * @author     Leiha Sellier <leiha.sellier@gmail.com>
 * @license    http://creativecommons.org/licenses/by/3.0/  CC BY 3.0
 * @link       http://code.google.com/p/mechanics-cubes/
 */
class McCube_Bundle_Application_Web
    extends McCube_Bundle_Application {

    public function __construct($rootPath, $environment){
        parent::__construct($rootPath, $environment);
        $this->session = McCube_Session::getInstanceOf();
    }

    /** */
    public function render(){
        $render = $this->getByArray($this->session->getRouter()->getRoute());
        //McCube_Error::sendErrors();
        return $render;
    }

}